package com.woniu.park.service.impl;

import com.woniu.park.entity.UserRole;
import com.woniu.park.dao.UserRoleMapper;
import com.woniu.park.service.IUserRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author cxb
 * @since 2020-09-05
 */
@Service
public class UserRoleServiceImpl extends ServiceImpl<UserRoleMapper, UserRole> implements IUserRoleService {
private UserRoleMapper userRoleMapper;
    /*
          注册生成租客角色
       */
    public void tenant(UserRole userRole) {
        userRoleMapper.insert(userRole);
        System.out.println(userRole);
    }
    }
